﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Classes;
using DAL;

namespace Business.Classes
{
    public class PropagandaBusiness
    {
        PropagandaDAL propagandaDAL = new PropagandaDAL();

        public Propaganda getPropagandaByID(int id)
        {
            try
            {
                return propagandaDAL.getPropagandaByID(id);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public List<Propaganda> getAllPropaganda()
        {
            try
            {
                return propagandaDAL.getAllPropaganda();
            }
            catch (Exception)
            {
                
                throw;
            }
        }
        public void deletePropaganda (Propaganda propaganda)
        {
            try
            {
                propagandaDAL.deletePropaganda(propaganda);
            }
            catch (Exception)
            {
                throw;
            }
        }
        public void InsertPropaganda (Propaganda propaganda)
        {
            try
            {
                propagandaDAL.InsertPropaganda(propaganda);
            }
            catch (Exception)
            {
                throw;
            }
        }
        

    }
}
